package com.yuwj.chinaa.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yuwj.chinaa.R;
import com.yuwj.chinaa.entity.EntityCommunityLevel;

import java.util.List;

/**
 * 社区等级adapter
 */
public class CommunityLevelAdapter extends BaseQuickAdapter<EntityCommunityLevel, BaseViewHolder> {
    Context context;

    public CommunityLevelAdapter(Context context, List<EntityCommunityLevel> datas) {
        super(R.layout.item_community_level, datas);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder holder, final EntityCommunityLevel item) {
        holder.setText(R.id.tv_level,item.getLevel()+"级");
        holder.setText(R.id.tv_recommend_couont,item.getMemberNumber()+"人");
        holder.setText(R.id.tv_today_earn,"+ "+item.getDayProfit());
    }

}
